core: When using hardlinks, always use linkat() for destination
authorColin Walters <walters@verbum.org>
Fri, 6 Sep 2013 22:28:20 +0000 (18:28 -0400)
committerColin Walters <walters@verbum.org>
Fri, 6 Sep 2013 22:45:41 +0000 (18:45 -0400)
commit4dcf1a42824695dd8c14c61e5aad74d4a6e6b47a
tree301dcb2e158dfc715773fdb6e0e7266f10aace31
parent2b61caa2feacc2a8fee9788c83a356e873f7198b
core: When using hardlinks, always use linkat() for destination

This avoids repeatedly traversing the target pathname, and is just
more efficient.

Part of a prelude to using fd-relative API for the source object path
too.
src/libostree/ostree-repo-checkout.c